cmake_minimum_required(VERSION 3.5)

project(lab18 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(lab18 main.cpp forgen.cpp
    list.h list.hpp
    hash_table.h hash_table.hpp)

include(GNUInstallDirs)
install(TARGETS lab18
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
